import request from '@/utils/request'

// 获取划控任务列表
export function kfjdjoblist(data) {
  return request({
    url: '/archive/isopenidentify/kfjdjoblist?pageNum=' + data.pageNum + "&pageSize=" + data.pageSize,
    method: 'POST',
    data: data

  })
}

//获取人员树
export function getusertree(query) {
  return request({
    url: '/archive/chooseuser/getusertree',
    method: 'GET',
    params: query
  })
}

//添加划控任务
export function addjob(data) {
  return request({
    url: '/archive/isopenidentify/addjob',
    method: 'POST',
    data: data
  })
}

//获取任务信息
export function getjobinfo(id) {
  return request({
    url: '/archive/isopenidentify/getjobinfo/' + id,
    method: 'GET'
  })
}

//获取任务信息
export function deletefile(id) {
  return request({
    url: '/archive/isopenidentify/deletefile/' + id,
    method: 'GET'
  })
}

//是否有修改的权限
export function hasupdatepro(id) {
  return request({
    url: '/archive/isopenidentify/hasupdatepro/'+id,
    method: 'GET',
  })
}

//修改任务信息

export function updatejobinfo(data) {
  return request({
    url: '/archive/isopenidentify/updatejobinfo',
    method: 'POST',
    data: data
  })
}
//删除任务
export function deletejob(ID) {
  return request({
    url: '/archive/isopenidentify/deletejob/' + ID,
    method: 'DELETE',
  })
}

//获取任务单内的档案数据列表
export function getdatalistbyrenwuid(data) {
  return request({
    url: '/archive/isopenidentify/getdatalistbyrenwuid?pageNum=' + data.pageNum + "&pageSize=" + data.pageSize,
    method: 'POST',
    data: data
  })
}

//获取业务table数据(调档)
export function isopenidentifyList(data) {
  return request({
    url: '/archive/isopenidentify/list?pageNum=' + data.pageNum + "&pageSize=" + data.pageSize,
    method: 'POST',
    data: data
  })
}



//调档添加档案
export function addarchive(data) {
  return request({
    url: 'archive/isopenidentify/addarchive',
    method: 'POST',
    data: data
  })
}

//删除调档档案
export function deletearchive(data) {
  return request({
    url: '/archive/isopenidentify/deletearchive',
    method: 'POST',
    data: data
  })
}

//追踪
export function followd(ID) {
  return request({
    url: '/archive/isopenidentify/followd/' + ID,
    method: 'GET',
  })
}

//发起鉴定
export function fqjd(ID) {
  return request({
    url: '/archive/isopenidentify/fqjd/' + ID,
    method: 'POST',
  })
}

//获取总数/初审分配数/复审分配数
export function getcsfsallnumbyrenwuid(ID) {
  return request({
    url: '/archive/isopenidentify/getcsfsallnumbyrenwuid/' + ID,
    method: 'GET',
  })
}


// //获取总数/初审分配数/复审分配数
export function getfushengnum(ID,userID) {
  return request({
    url: '/archive/isopenidentify/getfushennum/' + ID+"/"+userID,
    method: 'GET',
  })
}

// 获取任务总数/当前人分配数/待审核数/占比
export function getchushennum(ID,userID) {
  return request({
    url: '/archive/isopenidentify/getchushennum/' + ID+"/"+userID,
    method: 'GET',
  })
}

//获取手动分配档案列表

export function sdfplist(data) {
  return request({
    url: '/archive/isopenidentify/sdfplist?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
    method: 'POST',
    data: data
  })
}

//获取初审平均分配列表
export function cspjfplist(data) {
  return request({
    url: '/archive/isopenidentify/cspjfplist?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
    method: 'POST',
    data: data
  })
}

//标记分配/批量标记分配
export function markfp(data) {
  return request({
    url: '/archive/isopenidentify/markfp',
    method: 'POST',
    data: data
  })
}

//提交手动分配
export function commitsdfp(data) {
  return request({
    url: '/archive/isopenidentify/commitsdfp',
    method: 'POST',
    data: data
  })
}

//提交平均分配任务
export function pjfprw(data) {
  return request({
    url: '/archive/isopenidentify/pjfprw',
    method: 'POST',
    data: data
  })
}

//获取审核人员
export function getuser(data) {
  return request({
    url: '/archive/isopenidentify/getuser',
    method: 'POST',
    data: data
  })
}
//根据renwuid获取审核人员
export function getuserbyrenwuid(data) {
  return request({
    url: '/archive/isopenidentify/getuserbyrenwuid',
    method: 'POST',
    data: data
  })
}

//当前人是否有分配任务的权限
export function hasfenpeipro(ID) {
  return request({
    url: '/archive/isopenidentify/hasfenpeipro/'+ID,
    method: 'GET',
  })
}

//调档完成
export function completedd(ID) {
  return request({
    url: '/archive/isopenidentify/completedd/'+ID,
    method: 'GET',
  })
}

//撤销鉴定
export function chexiaojob(ID) {
  return request({
    url: '/archive/isopenidentify/chexiaojob/'+ID,
    method: 'POST',
  })
}

// 初审/复审提交
export function chushentijiao(data) {
  return request({
    url: '/archive/isopenidentify/chushentijiao',
    method: 'POST',
    data: data

  })
}


// 重新分配任务
export function refp(data) {
  return request({
    url: '/archive/isopenidentify/refp',
    method: 'POST',
    data: data

  })
}

//调整人员

export function tzry(data) {
  return request({
    url: '/archive/isopenidentify/tzry',
    method: 'POST',
    data: data

  })
}

//获取项目内案卷列表/获取卷内件列表
export function getdetaillist(data) {
  return request({
    url: '/archive/isopenidentify/getdetaillist?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
    method: 'POST',
    data: data
  })
}

//修改项目/案卷/文件/项目内案卷/案卷内档案的鉴定值
export function updateshending(data) {
  return request({
    url: '/archive/isopenidentify/updateshending',
    method: 'POST',
    data: data

  })
}

//更改理由(鉴定为开放时,理由置灰,并恢复理由为0,必须先选择鉴定结果为控制才能点击此下拉框)
export function updateliyou(data) {
  return request({
    url: '/archive/isopenidentify/updateliyou',
    method: 'POST',
    data: data

  })
}

//修改鉴定备注
export function updatebeizhu(data) {
  return request({
    url: '/archive/isopenidentify/updatebeizhu',
    method: 'POST',
    data: data

  })
}

//统计
export function tongji(data) {
  return request({
    url: '/archive/isopenidentify/tongji',
    method: 'POST',
    data: data

  })
}

//鉴定生效
export function jiandingshengxiao(data) {
  return request({
    url: '/archive/isopenidentify/jiandingshengxiao',
    method: 'POST',
    data: data

  })
}

//再次鉴定
export function jiandingagin(data) {
  return request({
    url: '/archive/isopenidentify/jiandingagin',
    method: 'POST',
    data: data

  })
}

// 查询门类树列表  开放鉴定、保管期限、销毁鉴定
export function listGROUPTree(query) {
  return request({
    url: '/archive/isopenidentify/getcatemodeltree',
    method: 'get',
    params: query
  })
}

//判断修改时档案门类是否禁用

export function editcate(ID) {
  return request({
    url: '/archive/isopenidentify/editcate/'+ID,
    method: 'POST',
  })
}
